// CherryMerry ( Mikhail Tomilenko ), Reverse Entertainment, 2021-2024


#include "Base_Enemy.h"
#include <NifestGame/ActorComponents/Public/EnemyHealthManager.h>

ABase_Enemy::ABase_Enemy()
{
	PrimaryActorTick.bCanEverTick = false;

	HealthManager = CreateDefaultSubobject<UEnemyHealthManager>("HealthManager");

}

void ABase_Enemy::BeginPlay()
{
	Super::BeginPlay();
	
	HealthManager->MaxHealth = MaxHealth;
	HealthManager->MaxShield = MaxShield;
	HealthManager->CurrentHealth = HealthManager->MaxHealth;
	HealthManager->CurrentShield = HealthManager->MaxShield;
}

void ABase_Enemy::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);

}

void ABase_Enemy::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
	Super::SetupPlayerInputComponent(PlayerInputComponent);

}

